﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SessionHeader.aspx.cs" Inherits="EM.MasterEntry.User.SessionHeader" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<%@ Register Src="~/Common/SectionName.ascx" TagName="SectionName" TagPrefix="uc3" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>



<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link  runat="server" id="linkCss" rel="stylesheet" href="~/css/master.css" type="text/css"/>
    <link  runat="server" id="linkcssbuttons" rel="stylesheet" href="~/css/buttons.css" type="text/css"/>
</head>

<script src="../../js/PopUp.js" language="javascript"></script>

<body>
    <form id="form1" runat="server">
        <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">     
            <tr>
                <td class="TdMainContent" valign="top">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="TdPageName" colspan="2"><uc3:SectionName id="snPersonalInfo" PAGESECTIONID="10" PAGEWIDTH="500" runat="server"></uc3:SectionName></td>
                        </tr>
                        <tr>
                            <td id="TdMainRight" valign="top">
                                <div id="ContentRight">
                                    <div style="width:500px;" class="SearchBox">
                                        <table border="0" cellspacing="8" cellpadding="0" width="100%"> 
                                            <tr>
                                                <td ><label>Başlangıç Tarihi:</label></td>
                                                <td>
                                                <radCln:RadDatePicker ID="rdpSTARTDATE"  runat="server" DateInput-DateFormat="dd.MM.yyyy" MaxDate="01/01/2049" MinDate="01/01/2000" Width="95">
                                                     <DateInput Skin="master"></DateInput>
                                                </radCln:RadDatePicker>
                                                </td>
                                                <td><label>Bitiş Tarihi:</label></td>
                                                <td>
                                                <radCln:RadDatePicker ID="rdpEnddate"  runat="server" DateInput-DateFormat="dd.MM.yyyy" MaxDate="01/01/2049" MinDate="01/01/2000" Width="95">
                                                     <DateInput Skin="master"></DateInput>
                                                </radCln:RadDatePicker>
                                                </td>
                                                <td align="right">
                                                    <asp:LinkButton ID="btnSearch" style="float:right;" CssClass="btn_left xp_find" runat="server" OnClick="btnSearch_Click" >
                                                        <strong class="btn_rigth_xp xp">Ara</strong>
                                                    </asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div id="GrdDivMaster">
                                        <radG:RadGrid ID="rgMaster" runat="server" Skin="master" GridLines="None" PageSize="19" AllowPaging="True" 
                                        AllowSorting="True" Width="500" AutoGenerateColumns="False" EnableAJAX="true" ShowStatusBar="true" 
                                        OnNeedDataSource="rgMaster_NeedDataSource"  OnItemDataBound="rgMaster_ItemDataBound"
                                        LoadingTemplateTransparency="55" EnableAJAXLoadingTemplate="True" >
                                        <PagerStyle Mode="NumericPages" />
                                        <ClientSettings Selecting-AllowRowSelect="false" ></ClientSettings>
                                            <MasterTableView GridLines="None" DataKeyNames="SESSIONHEADERID">
                                            <Columns>
                                                <radG:GridBoundColumn UniqueName="STARTDATE" HeaderText="Oturum Açma" DataField="STARTDATE" AllowFiltering="false" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                                    <HeaderStyle Width="160px" HorizontalAlign="Left"></HeaderStyle>
                                                </radG:GridBoundColumn>                    
                                                <radG:GridBoundColumn UniqueName="ENDDATE" HeaderText="Oturum Kapama" DataField="ENDDATE" AllowFiltering="false" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                                    <HeaderStyle Width="160px" HorizontalAlign="Left"></HeaderStyle>
                                                </radG:GridBoundColumn>                    
                                                <radG:GridBoundColumn UniqueName="IPADDRESS" HeaderText="IP Adresi" DataField="IPADDRESS" AllowFiltering="false">
                                                    <HeaderStyle Width="160px" HorizontalAlign="Left"></HeaderStyle>
                                                </radG:GridBoundColumn>                    
                                                <radG:GridTemplateColumn  UniqueName="Edit" HeaderText="İşlemler" AllowFiltering="false">
                                                    <HeaderStyle HorizontalAlign="left"  Width="70" />
                                                    <ItemStyle HorizontalAlign="left" Wrap="false" />
                                                    <ItemTemplate>
                                                        <a href="javascript:openWin('SessionDetails.aspx?task=Update&ID=<%#Eval("SESSIONHEADERID") %>','winEdit1',1,530,550,0,0)" id="aEdit">
                                                            <asp:Label ID="lblEdit" runat="server">Detaylar</asp:Label>
                                                        </a>
                                                    </ItemTemplate>
                                                </radG:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </radG:RadGrid> 
                                  
                                </div>
                                <a id="A2" class="btn_left xp_cancel" href="javascript:window.close();">
                                    <strong class="btn_rigth_xp xp">Kapat</strong>
                                </a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
